package mk.com.ldm.corepoint.implementation.client.lib.generators;

import mk.com.ldm.corepoint.implementation.client.lib.Constants.CPConstants;
import mk.com.ldm.corepoint.implementation.shared.FormRow;

import com.google.gwt.user.client.ui.Composite;

public class BaseWidget extends Composite implements BaseWidgetMethods {
	
	private FormRow config;
	private int type;
	protected Boolean valid = true;

	public final String LABEL_WIDTH = "90px";
	public final String SEARCH_IMAGE = CPConstants.SEARCH_IMAGE;
	public final String EDIT_IMAGE = CPConstants.INSERT_IMAGE;
	public final String LOADING_IMAGE = CPConstants.LOADING_IMAGE;
	public final String CLOSE_IMAGE = CPConstants.CLOSE_IMAGE;
	public final String TEXTBOX_WIDTH = "100px";

	
	public BaseWidget(FormRow config) {
		super();
		this.config = config;
	}

	public Boolean getValid() {
		return valid;
	}

	public void setValid(Boolean valid) {
		this.valid = valid;
	}
	
	public FormRow getConfig() {
		return config;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public void setConfig(FormRow config) {
		this.config = config;
	}
	
	public String getStyleName(){
		return null;
	}
	
	
	public void setValue(String value){}
	public String getValue(){ return null; }
	public void setTitle() {}
	public void setEnabled(Boolean enabled) {}
	public void setVisible(Boolean visible) {}
	public String getTitle(String title) { return null; }
	public String getText() { return null; }
	public void setText(String text) {}
	public String getName() { return null; }
	public void setName(String name) {}
	public void setFocus(boolean focus){}
	
}
